//
//  XMGKeyboardViewController.swift
//  CXSwiftWB
//
//  Created by meidaeriOS on 2017/6/8.
//  Copyright © 2017年 meidaer. All rights reserved.
//

import UIKit

class XMGKeyboardViewController: UIViewController {
    
    // MARK: - 属性 ------------------------------------
    
    var packages: [XMGKeyboardPackage] = XMGKeyboardPackage.loadEmotionPackages()
    
    /// 回调闭包属性
    var emotionCallback: ((_ emoticon: KeyboardEmoticon) -> ())?
    
    init(callBack: @escaping (_ emotion: KeyboardEmoticon) -> ()) {
        emotionCallback = callBack
        super.init(nibName: nil, bundle: nil)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    // MARK: - 系统方法、初始View ------------------------------------
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        initView()
    }
    
    private func initView() {
        
    }
    
    // MARK: - 点击、通知、定时器 ------------------------------------
    
    // MARK: - 辅助方法 ------------------------------------
    
    // MARK: - 懒加载 ------------------------------------



    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
